package cn.itsource.system.mapper;

import cn.itsource.system.domain.Role;
import cn.itsource.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hhm
 * @since 2023-04-01
 */
public interface RoleMapper extends BaseMapper<Role> {

    void saveRoleMenu(@Param("roleId") Long roleId, @Param("menus") List<Long> menuId);

    void saveRolePermission(@Param("roleId") Long roleId, @Param("permissions") List<Long> permissionId);

    void deleteRoleMenu(Long id);

    void deleteRolePermission(Long id);
}
